<?php

namespace App\Providers;

use App\Models\Article;
use App\Observers\ArticleObserver;
use Illuminate\Support\Facades\Event;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * 应用程序的事件侦听器映射。
     *
     * @var array
     */
    protected $listen = [
        Registered::class => [
            SendEmailVerificationNotification::class,
        ],
		'App\Events\OrderShipped' => [
			'App\Listeners\SendShipmentNotification',
		],
    ];


	/**
	 * @var array 注册事件订阅者
	 */
    protected $subscribe = [
		'App\Listeners\AdminListener' //
	];

    /**
     * 为您的应用注册任何活动。
     *
	 *  注册观察者
     * @return void
     */
    public function boot()
    {
        parent::boot();
    }
}
